package cannot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cannot.pojo.Remark;
import cannot.pojo.RemarkExample;

@Mapper
public interface RemarkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Remark record);

    int insertSelective(Remark record);

    List<Remark> selectByExampleWithBLOBs(RemarkExample example);

    List<Remark> selectByExample(RemarkExample example);

    Remark selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Remark record);

    int updateByPrimaryKeyWithBLOBs(Remark record);

    int updateByPrimaryKey(Remark record);
    
    List<Remark> listRemarkByTvId(Integer id);
    
    Double avgTv(Integer id);
}